/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;

/**
 * <p>Project: jse2302 - Sss
 * <p>Powered by webrx On 2023-06-30 14:40:40
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Sss {
    public static void main(String[] args) {
        Set<Map<String,Socket>> ss = new HashSet<>();
        //服务器
        try (var server = new ServerSocket(6666)) {
            Socket s = server.accept();
            Map<String,Socket> map = new HashMap<>();
            new Thread(new Reader(s)).start();
            new Thread(new Writer(s, "服务器")).start();
        } catch (Exception e) {

        }
    }
}
